<select ${attr!} >
<%
DIRECTIVE DYNAMIC   listdata;
print("<option value="+headkey!" "+">"+headtext!"请选择"+"</option>");
if(listdata!null !=null){
	if(strutil.isEmpty(key!null)==false){
		for(obj in listdata!){
			print("<option value="+obj[key]+" "+(obj[key]+''==value!''?'selected':'')+">"+obj[text]+"</option>"); 
	}
  }else{
	for(obj in listdata!){
			print("<option value="+obj.key+" "+(obj.key+''==value!''?'selected':'')+">"+obj.value+"</option>"); 
	}
  }
	
}
%></select>